#include <stdio.h>
#include <stdlib.h>
#include <time.h>

int main(int argc,char* argv[])
{   
    time_t t=time(0);
    srand(t);
    unsigned int jiage=rand()%101;
    unsigned int i=5,input=0;
    printf("%u\n",jiage);
    while(i)
    {
        printf("请输入答案:");
        scanf("%u",&input);
        if(input == jiage)
        {
            printf("你猜对了！可以领取奖品\n");
            i=1;
        }
        else if(input > jiage)
        {
           printf("你猜大了\n"); 
        }
        else
        {
            printf("你猜小了\n");
        }
        i--;
    }



    return 0;
}